﻿@model GoDinner.Models.Cart

    <span class="bestelling-courier">GoDinner<br/>-------------------<br/>Uw bestelling:<br/>---------</span>
    <table style="width: 100%;">
        <thead>
            <tr>
                <th style="width:50px;">Hoev.</th>
                <th>Artikel</th>
                <th style="width: 80px; text-align: right;">Prijs</th>
            </tr>
        </thead>
        @foreach (var item in Model.GetCartLines())
        {
            <tr>
                <td>@item.Quantity <a class="g-button g-remove" data-id="@item.Gerecht.Id" href="#">-</a></td>
                <td>@item.Gerecht.Naam (&euro; @item.Gerecht.Prijs)</td>
                <td style="text-align: right;">&euro; @(item.Gerecht.Prijs * item.Quantity)</td>
            </tr>
        }
        @if (Model.GetCartLines().Count() == 0)
        {
            <tr>
                <td colspan="3" style="text-align:center;">Nog geen gerechten toegevoegd!</td>
            </tr>
        }

        <tr>
            <td colspan="3" style="font-weight:bold; text-align:right;">&euro; @Model.GetTotal()</td>
        </tr>
    </table>
<span class="bestelling-courier">---------<br/>Eet smakelijk!</span>